import { http } from '@/utils/http'
const baseURL = '/api/v1'

const FileApi = {
  uploadUrl: import.meta.env.VITE_SERVER_BASEURL + '/core/api/file/upload',
  // 上传
  upload: (data: any) => {
    return http({
      url: `${baseURL}/upload`,
      method: 'POST',
      data,
    })
  },
}
export default FileApi
